package com.scu.dao;

import com.scu.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentDao {

    int postComment(@Param("comment") Comment comment);

    int redactComment(@Param("c_id") String c_id);

    List<Comment> getCommentList(@Param("comment") Comment comment);

    List<Comment> getMyCommentByPage(@Param("index")int index, @Param("limit")int limit,
                                     @Param("comment") Comment comment);

//    int removeComment(@Param("comment") Comment comment);
//
//    List<Comment> getMyComment(@Param("comment") Comment comment);

    String findT_idByC_id(@Param("comment") Comment comment);
}
